<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!--[if lte IE 7 ]><html class="no-js ie lte7 lte8 lte9 javascript"><![endif]-->
<!--[if IE 8 ]><html class="no-js ie ie8 lte8 lte9 javascript"><![endif]-->
<!--[if IE 9 ]><html class="no-js ie ie9 lte9 javascript"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html class="no-js javascript">
<!--<![endif]-->
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="keywords" content="头发,掉头发,脱发,脂溢性脱发,如何治疗脱发">
    <meta name="description" content="好头发网（www.haotoufa.com)提供最全头发知识手册,汇聚发型、烫发、染发、脱发、白发、植发、如何治疗脱发等与头发一切的资讯，是脱发问题一站式解决平台。">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <title>头发,掉头发,脱发,脂溢性脱发,如何治疗脱发- 好头发网</title>
    <meta name="renderer" content="webkit" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="white" />
    <meta name="apple-mobile-web-app-title" content="好头发" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="mobile-web-app-capable" content="yes" />
    <meta name="browsermode" content="application" />
    <meta name="x5-page-mode" content="app" />
    <meta name="x5-fullscreen" content="true" />
    <link rel="stylesheet" href="/Public/css/amazeui.min.css" />

    <!--[if (gte IE 9)|!(IE)]><!-->
    <script src="/Public/js/jquery-1.11.3.min.js"></script>
    <!--<![endif]-->
    <!--[if lt IE 9]><script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script><script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script><script src="http://a.static.amazeui.org/assets/2.x/js/polyfill/rem.min.js"></script><script src="http://a.static.amazeui.org/assets/2.x/js/polyfill/respond.min.js"></script><script src="http://a.static.amazeui.org/assets/2.x/js/amazeui.legacy.js"></script><![endif]-->
    <script src="/Public/js/amazeui.min.js"></script>
    <script src="/Public/js/app.min.js"></script>
    <script src="/Public/js/masonry.pkgd.min.js"></script>

</head>
<body style="padding-bottom:54px">
<header data-am-widget="header" class="am-header am-header-default">
    <div class="am-header-left am-header-nav">
        <!-- <a href="javascript:void(0)" data-am-modal="{target: '#chooseLocation'}" class=""><i class="am-header-icon am-icon-location-arrow"></i></a>
        <a href="javascript:void(0)" data-am-modal="{target: '#search-modal'}" class=""><i class="am-header-icon am-icon-search"></i></a> -->
    </div>
    <h1 class="am-header-title">好头发</h1>
    <div class="am-header-right am-header-nav">
        <a href="" target="_self"><i class="am-header-icon"></i></a>
    </div>
</header>

<!--顶部菜单显示-->
<nav data-am-widget="menu" class="am-menu  am-menu-slide1" data-am-menu-collapse>
    <a href="javascript: void(0)" class="am-menu-toggle">
        <i class="am-menu-toggle-icon am-icon-bars"></i>
    </a>

    <ul class="am-menu-nav am-avg-sm-4 am-collapse">
        <li class="">
            <a href="index" class="" >首页</a>
        </li>
        <li class="">
            <a href="<?php echo U('index/listDetail',['cat' => 75]);?>" class="" >头发资讯</a>
        </li>
        <li class="">
            <a href="<?php echo U('index/listDetail',['cat' => 5]);?>" class="" >养发护发</a>
        </li>
        <li class="">
            <a href="<?php echo U('index/listDetail',['cat' => 21]);?>" class="" >男性脱发</a>
        </li>
        <li class="">
            <a href="<?php echo U('index/listDetail',['cat' => 22]);?>" class="" >女性脱发</a>
        </li>
        <!--
        <li class="">
            <a href="<?php echo U('index/listDetail',['cat' => 70]);?>" class="" >植发</a>
        </li>
        -->
        <li class="">
            <a href="<?php echo U('index/listDetail',['cat' => 73]);?>" class="" >脱发原因</a>
        </li>
        <li class="">
            <a href="<?php echo U('index/listDetail',['cat' => 86]);?>" class="" >脱发解决</a>
        </li>
        <li class="">
            <a href="http://bbs.haotoufa.com/youhui.html" class="" >植发优惠</a>
        </li>
        <li class="">
            <a href="http://bbs.haotoufa.com" class="" >好头发论坛</a>
        </li>
        <li class="">
            <a href="http://www.haotoufa.com/zt/index.html" class="" >植发案例</a>
        </li>
    </ul>

</nav>

<div class="content">
    <div data-am-widget="slider" class="am-slider am-slider-a1" data-am-slider="{directionNav:false}">
        <ul class="am-slides">
            <?php if(is_array($newData)): $i = 0; $__LIST__ = $newData;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
                    <a href="<?php echo ($vo["url"]); ?>">
                        <img src="<?php echo ($vo["picurl"]); ?>" data-holder-rendered="true" />
                    </a>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>

    <div data-am-widget="list_news" class="am-list-news am-list-news-default" >

        <div class="am-list-news-bd">
            <ul class="am-list" id="newContent">
                <?php foreach($newsArr as $k => $v){ ?>

                <?php if($v['titlepic']){ ?>
                <li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left">
                    <div class="am-u-sm-4 am-list-thumb">
                        <a href="<?php echo $v['titleurl']; ?>">
                            <?php  $titlepic = str_replace("http://www.haotoufa.com", "", $v['titlepic']); ?>
                            <img src="http://www.haotoufa.com<?php echo $titlepic; ?>"/>
                        </a>
                    </div>
                    <div class=" am-u-sm-8 am-list-main">
                        <h3 class="am-list-item-hd">
                            <a href="<?php echo $v['titleurl']; ?>" class=""><?php echo $v['title']; ?></a>
                        </h3>
                        <div class="am-list-item-text">
                            <?php echo html_entity_decode($v['smalltext']); ?>
                        </div>
                    </div>
                </li>
                <?php }else{?>
                <li class="am-g am-list-item-desced">

                    <div class=" am-list-main">
                        <h3 class="am-list-item-hd"><a href="<?php echo $v['titleurl']; ?>" class=""><?php echo $v['title']; ?></a></h3>

                        <div class="am-list-item-text"><?php echo html_entity_decode($v['smalltext']); ?></div>

                    </div>
                </li>
                <?php }?>
                <?php } ?>

                <!--没有更多了显示信息-->
                <div class="am-g am-text-center" id="next-page" url="/Index/slideUp/page/2">
                    <i class="am-icon-arrow-circle-o-down"></i>&nbsp; 加载中<i class="am-icon-spinner am-icon-spin"></i>...

                    <script type="text/javascript">
                        $('#next-page').scrollspy({
                            animation: 'slide-top',
                            repeat: false
                        });
                        $('#next-page').on('inview.scrollspy.amui', function() {
                            var url = $(this).attr('url');
                            if('end' !== url){
                                $.ajax({
                                    beforeSend: function(){
                                        return true;
                                    },
                                    complete: function(){
                                        return true;
                                    },
                                    url: $(this).attr('url'),
                                    dataType: "html",
                                    type: "POST",
                                    cache: false,
                                    async:true,
                                    success: function(html){
                                        $('#next-page').remove();
                                        $('#newContent').append(html);
                                    }
                                });
                            }
                        });
                    </script>

                </div>

            </ul>
        </div>
    </div>
</div>



<!--底部菜单文件-->
<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default" id="">
    <ul class="am-navbar-nav am-cf am-avg-sm-3">
        <li><a href="<?php echo U('index');?>" target="_self" id="ymbtn"><span class="am-icon-home"></span><span class="am-navbar-label">首页</span></a></li>
    </ul>
</div>


<!--回到顶部-->
<div data-am-widget="gotop" class="am-gotop am-gotop-fixed" >
    <a href="#top" title="回到顶部">
        <span class="am-gotop-title">回到顶部</span>
        <i class="am-gotop-icon am-icon-chevron-up" style="background-color:#15afef; "></i>
    </a>
</div>
<!--统计代码-->
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?7c2b50385fa90625e2d2f64e4cd9220f";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>

<script type="text/javascript">
    $(function(){
        if (("standalone" in window.navigator) && window.navigator.standalone) {
            // If you want to prevent remote links in standalone web apps opening Mobile Safari, change 'remotes' to true
            var noddy,
                    remotes = false;
            document.addEventListener('click', function(event) {
                noddy = event.target;
                //Bubble up until we hit link or top HTML element. Warning: BODY element is not compulsory so better to stop on HTML
                while (noddy.nodeName !== "A" && noddy.nodeName !== "HTML") {
                    noddy = noddy.parentNode;
                }
                if ('href' in noddy && noddy.href.indexOf('http') !== -1 && (noddy.href.indexOf(document.location.host) !== -1 || remotes)) {
                    event.preventDefault();
                    document.location.href = noddy.href;
                }
            }, false);
        }
    })
</script>
</body>
</html>